<?php 
session_start();          
	require_once "../includes/config.php";
	
	$report_id=$_REQUEST['report_id'];
	$sqlSelProfile="select * from tbl_report where report_id=$report_id";
	$rstSelProfile=mysql_query($sqlSelProfile);
	$rowSelProfile=mysql_fetch_array($rstSelProfile);
	
	$subject=$rowSelProfile['subject'];	
	$name=$rowSelProfile['name'];
	$email=$rowSelProfile['email'];	
	$username=$rowSelProfile['username'];	
	$password=$rowSelProfile['password'];
	$attachfile=$rowSelProfile['attachfile'];	
	$comment=$rowSelProfile['comment'];
	$post_date=$rowSelProfile['post_date'];	
		
	
	?>
<style type="text/css">
	table#tbl-profile tr td { vertical-align:middle; }
</style>
<table width="100%" height="611"  border="1" cellspacing="0" class='container'>
  <tr>
  	<td height="26" class="tdHeader">Reports </td>
  </tr>
  <tr>
    <td><table id="tbl-profile" width="80%" align="center"  border="0" cellspacing="0" cellpadding="0">
      <tr>
	  	<td colspan="3" height="35">&nbsp;</td>
	  </tr>
	  
      <tr>
        <td width="37" bgcolor="#FBF1F1">&nbsp;</td>
        <td width="215" height="33" bgcolor="#FBF1F1">Subject </td>
        <td width="380" height="33" bgcolor="#FBF1F1"><?php echo $subject; ?></td>
      </tr>
	  
      <tr>
        <td align="center">&nbsp;</td>
        <td height="33" >Name </td>
        <td height="33" align="center" ><?php echo $name; ?></td>
      </tr>
     
      <tr>
        <td bgcolor="#FBF1F1">&nbsp;</td>
        <td height="33" bgcolor="#FBF1F1">Email </td>
        <td height="33" bgcolor="#FBF1F1"><?php echo $email; ?></td>
      </tr>
     
  <tr>
    <td >&nbsp;</td>
    <td height="33" >Username</td>
    <td height="33" ><?php echo $username; ?></td>
  </tr>
  
   <tr>
     <td bgcolor="#FBF1F1">&nbsp;</td>
    <td height="33" bgcolor="#FBF1F1">Password</td>
    <td height="33" bgcolor="#FBF1F1"> <?php echo $password; ?> </td>
  </tr>
  
   <tr>
     <td >&nbsp;</td>
    <td height="33" >Attachfile</td>
    
    <td height="33" >
	<?php if($attachfile!="") {?>
	  <a href="<?php echo $baseurl."".$attachfile; ?>">Attachfile</a>
	<?php } ?>
   </td>
  </tr>
   <tr>
     <td bgcolor="#FBF1F1">&nbsp;</td>
    <td height="33" bgcolor="#FBF1F1">Comment</td>
    <td height="33" bgcolor="#FBF1F1"> <?php echo $comment; ?> </td>
  </tr>
    <tr>
      <td>&nbsp;</td>
      <td height="33">Postdate</td>       
      <td height="33"> <?php  echo $post_date; ?> </td>
    </tr>
	
     <tr>
	 	<td>&nbsp;</td>
        <td height="98" colspan="2" ><a href="index.php?reports">Back To List</a></td>
     </tr>
    </table></td>
  </tr>
</table>
